package cn.walls1717.wallsmall.seckill.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.walls1717.wallsmall.common.utils.R;

/**
 * 商品Feign
 *
 * @author walls1717
 * @since 2022/11/25 22:13
 **/
@FeignClient("wallsmall-product")
public interface ProductFeignService {

    /**
     * 根据skuId获取sku详情
     *
     * @param skuId skuId
     * @return sku详情
     */
    @RequestMapping("/product/skuinfo/info/{skuId}")
    R getSkuInfoBySkuId(@PathVariable("skuId") Long skuId);
}
